import {createRouter,createWebHistory} from 'vue-router'
// import index from '../components/App'

const router = createRouter({
    history:createWebHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path:'/',
            name:'index',
            component:()=>import('../src/components/App.js')
        },
        {
            path:'/login',
            name:'login',
            component:()=>import('../src/components/login.js')
        },
        {
            path:'/Reg',
            name:'Reg',
            component:()=>import('../src/components/Reg.js')
        },
        {
            path:'/detail',
            name:'detail',
            component:()=>import('../src/components/detail.js')
        }
    ]
})

export default router